{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "All Photos" %}{% endblock %}

{% block content %}

<h1>{% trans "All Photos" %}</h1>

{% if object_list %}
    {% for photo in object_list %}
    <div class="gallery-photo">
        <a href="{{ photo.get_display_url }}" rel="lightbox-{{photo.gallery}}" title="{{ photo.title }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
    </div>
    {% endfor %}
{% else %}
<p>{% trans "No photos were found." %}</p>
{% endif %}

{% if is_paginated %}
<p>{{ hits }} photos total.</p>
<div id="page_controls">
    <p>{% if has_previous %}<a href="{% url pl-photo-list previous %}">{% trans "Previous" %}</a> | {% endif %} {% trans "page" %} {{ page }} {% trans "of" %} {{ pages }} {% if has_next %}| <a href="{% url pl-photo-list next %}">{% trans "Next" %}</a>{% endif %}</p>
</div>
{% endif %}

{% endblock %}
